package in.iqing.view.activity;

import in.iqing.control.api.ApiHelper;
import in.iqing.control.api.callback.BookListCallback;
import in.iqing.model.bean.Category;

/**
 * Created by ZuoShu on 15/7/7.
 */
public class CategoryBookListActivity extends BaseBookListActivity {
    private Category category;

    @Override
    protected void initializeVariable() {
        category = (Category) getIntent().getSerializableExtra("category");
        title.setText(category.getName());
    }

    @Override
    protected void requestBookList(int pageSize, int pageNo, BookListCallback callback) {
        ApiHelper.getSingleton().getCategoryContent(VOLLEY_TAG, category.getId(), pageSize, pageNo, callback);
    }

}
